package com.lhj.bootdemo.designmode.prototype;

/**
 * @author lhj
 * @version 1.0
 * @date 2022/5/13 2:08 下午
 * @description: 具体的原型类:长方形
 */

public class Rectangle extends Shape {

    public Rectangle() {
        super.type = "Rectangle";
    }


    @Override
    void draw() {
        System.out.println("Inside Rectangle::draw() method.");
    }
}
